﻿namespace ConsoleApp1.utils;

/**
 * 日志工具类
 */
public class LogUtil
{
    private static string logString = "";

    /**
     * 添加日志
     */
    public static void addLog(string log)
    {
        logString += log;
        logString += "\n";
    }

    /**
     * 获取运行日志
     */
    public static string getLog()
    {
        return logString;
    }

    /**
     * 清除日志
     */
    public static void clearLog()
    {
        logString = "";
    }
}